package main;

import annotations.Restrito;
import controller.EventoController;
import java.lang.reflect.Method;

public class Main {

    public static void main(String[] args) {
        EventoController eventControl = new EventoController();
        Method[] methods = eventControl.getClass().getDeclaredMethods();
        for (Method method : methods) {
            if(method.isAnnotationPresent(Restrito.class)){
                System.out.println("value: "+method.getAnnotation(Restrito.class).teste());
            }
            System.out.println(method.getName());
        }
    }
}
